<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    
</body>
</html>
<script>
    var time = Number(prompt('输入一个时间'))
    if(time>=5.00 && time<=8.60){
        alert('早晨')
    }else if(time>11.00 && time<=12.60){
        alert('中午')
    }else if(time>=13.00 && time<16.60){
        alert('下午')
    }else if(time>=17.00 && time<=24.60 || time>=1.00 && time<=4.60){
        alert('晚上')
    }else{
        alert('没有这个时间点')
    }
</script>